<?php

namespace Luka\StoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Luka\StoreBundle\Entity\Person
 *
 * @ORM\Table(name="Person")
 * @ORM\Entity
 */
class Person
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string $firstname
     *
     * @ORM\Column(name="firstname", type="string", length=100, nullable=false)
     */
    private $firstname;

    /**
     * @var string $lastname
     *
     * @ORM\Column(name="lastname", type="string", length=100, nullable=false)
     */
    private $lastname;

    /**
     * @var string $personcode
     *
     * @ORM\Column(name="personcode", type="string", length=50, nullable=false)
     */
    private $personcode;

    /**
     * @var Party
     *
     * @ORM\ManyToOne(targetEntity="Party")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="party_id", referencedColumnName="id")
     * })
     */
    private $party;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set firstname
     *
     * @param string $firstname
     */
    public function setFirstname($firstname)
    {
        $this->firstname = $firstname;
    }

    /**
     * Get firstname
     *
     * @return string 
     */
    public function getFirstname()
    {
        return $this->firstname;
    }

    /**
     * Set lastname
     *
     * @param string $lastname
     */
    public function setLastname($lastname)
    {
        $this->lastname = $lastname;
    }

    /**
     * Get lastname
     *
     * @return string 
     */
    public function getLastname()
    {
        return $this->lastname;
    }

    /**
     * Set personcode
     *
     * @param string $personcode
     */
    public function setPersoncode($personcode)
    {
        $this->personcode = $personcode;
    }

    /**
     * Get personcode
     *
     * @return string 
     */
    public function getPersoncode()
    {
        return $this->personcode;
    }

    /**
     * Set party
     *
     * @param Luka\StoreBundle\Entity\Party $party
     */
    public function setParty(\Luka\StoreBundle\Entity\Party $party)
    {
        $this->party = $party;
    }

    /**
     * Get party
     *
     * @return Luka\StoreBundle\Entity\Party 
     */
    public function getParty()
    {
        return $this->party;
    }
}